﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _07_WebHost.Host
{
    public class HttpContext
    {
        public HttpRequest Request { get; }

        public HttpResponse Response { get; }

        internal HttpContext(HttpRequest request, HttpResponse response)
        {
            Request= request;
            Response = response;
        }

        public class HttpRequest
        {
            public string Url { get;  }
            public string Content { get;  }

            public HttpRequest(string url, string content)
            {
                Url = url;
                Content = content;
            }
        }

        public class HttpResponse
        {
            public string Content { get; }

            public HttpResponse(string content)
            {
                Content = content;
            }
        }
    }
}
